<?php

if ($subCategory != NULL){
    $subValue = "<input type='hidden' name='subCategory' value = '$subCategory' >";
// detta måste läggas till eftersom att subCategory ibland är null och blir databasqueryn konstig!
}
if ($location != NULL){
    $locValue = "<input type='hidden' name='location' value = '$location' >";

    }
    if ($headCategory != NULL){
    $headValue = "<input type='hidden' name='headCategory' value = '$headCategory' >";

    }
if (($_GET['priceSort'])==null){$ingen = "selected='selected'";}
if (($_GET['priceSort'])==1){$sortupp = "selected='selected'";}
if (($_GET['priceSort'])==2){$sortner = "selected='selected'";}

print "<NOBR>
<div style='z-index: 100; position: absolute; left: 196px; top: -35px; width: 200px; padding: 10px; color: black; '>
<form name = 'priceForm' action='getPaintings.php' method='get' >



    <div style='font-color:black; font-size:11px; font-weight: lighter; color:black; font-family:Helvetica, sans-serif;;'> SORTERING:&nbsp;
        <select name='priceSort' onChange = 'this.form.submit()' >
        <option value='' $ingen>Senast inlagd</option>
	<option value='1' $sortupp>Pris - lägst till högst</option>
        <option value='2' $sortner>Pris - högst till lägst</option>

	</select>



$headValue
$subValue
$locValue
</form>
</div>
</div>
</NOBR>
";

?>
